import type { RouteRecordRaw } from 'vue-router';
import Layout from '@/layout/index.vue';

const auth: RouteRecordRaw = {
	path: '/auth',
	component: Layout,
	redirect: '/auth/menu',
	meta: {
		title: '权限管理',
		icon: 'setting'
	},
	children: [
		{
			path: '/auth/user',
			name: 'User',
			component: () => import('@/views/auth/user/index.vue'),
			meta: {
				title: '用户管理',
				icon: 'user'
			}
		},
		{
			path: '/auth/role',
			name: 'Role',
			component: () => import('@/views/auth/role/index.vue'),
			meta: {
				title: '角色管理',
				icon: 'permissions'
			}
		},
		{
			path: '/auth/menu',
			name: 'Menu',
			component: () => import('@/views/auth/menu/index.vue'),
			meta: {
				title: '菜单管理',
				icon: 'application-menu'
			}
		}
	]
}
export default auth;
